import ajax from './request'

const studentUrl = '/api/student'
const scoreUrl = '/api/score'
export const getTest = (params) => {
  return ajax.get('/api/score/page', {
    params: params
  })
}

export const postLogin = (data) => {
  return ajax.post(`${studentUrl}/login`, data)
}

export const getPageData = (params) => {
  return ajax.get(`/api/score/page`, {
    params: params
  })
}

export const getDeleteScore = (params) => {
  return ajax.get(`${scoreUrl}/delete/${params.stuId}`)
}

export const getGrade = (params) => {
  return ajax.get(`/api/grade`, {
    params: { ...params }
  })
}



